//
//  XSGrid.h
//  Test
//
//  Created by xueshan1 on 2018/12/17.
//  Copyright © 2018 xueshan1. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XSGridColumn.h"
NS_ASSUME_NONNULL_BEGIN


/**
 使用方法:
 1.-addColumn 先设置'列'的属性
 2.-addRow  再添加行的数据,每一行中每一列对应的数据
 3.-refreshGrid 刷新
 
 */
@interface XSGrid : UIView

@property(nonatomic,strong)NSMutableArray<XSGridColumn *> *columnDatas; //每列的信息(key,宽度)
@property(nonatomic,strong)NSMutableArray *rowDatas; //每行展示的数据
@property(nonatomic,assign)CGFloat rowHeight;//行高
@property(nonatomic,assign)CGFloat lineWidth;//线宽
@property(nonatomic,strong)UIColor *lineColor;
@property(nonatomic,assign)CGFloat fontSize;
@property(nonatomic,strong)UIColor * textColor;

- (void)addColumn:(XSGridColumn *)column;
- (void)addRow:(NSDictionary *)dic;
- (void)addRow:(NSDictionary *)dic rowhHeight:(CGFloat)rowHeight;
- (void)refreshGrid;



@end

NS_ASSUME_NONNULL_END
